package com.laolang.shop.modules.product.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.Version;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * sku
 *
 * @author khlbat
 * @version 1.0
 * @date 2020/11/4 14:59
 */
@Data
public class ProductSku {

    @TableId(type = IdType.AUTO)
    private Long id;

    private Long spuId;

    private String name;
    private Long cateId;
    private Long defaultImage;
    private BigDecimal price;
    private Integer sort;
    /**
     * 虚拟销量
     */
    private Integer saleVirtual;

    /**
     * 实际销量
     */
    private Integer saleActual;

    private LocalDateTime createTime;
    private LocalDateTime updateTime;
    @Version
    private Integer version;
}
